package com.cqjybigscreen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cqjybigscreen.pojo.dto.SummaryDateDTO;
import com.cqjybigscreen.pojo.entity.AdsCqwlCustomer;
import com.cqjybigscreen.pojo.vo.BoxTrendVO;
import com.cqjybigscreen.pojo.vo.BoxVolumeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 33618客户货物 Mapper 接口
 * </p>
 *
 * @author RaoChang
 */
@Mapper
public interface AdsCqwlCustomerMapper extends BaseMapper<AdsCqwlCustomer> {
    /**
     * 获取客户分布云图
     *
     * @return List<BoxVolumeVO>
     */
    List<BoxVolumeVO> getCustomerDistribution(@Param("direction")List<String> direction);

    /**
     * 获取企业数量和箱量总量
     *
     * @param direction 方向
     * @return Map<String, String>
     */
    BoxTrendVO getEnterpriseStatistics(@Param("direction") List<String> direction);

    /**
     * 货物订单分类数据
     *
     * @param direction 方向
     * @return List<BoxTrendVO>
     */
    List<BoxTrendVO> getOrderStatistics(@Param("direction") List<String> direction);

    /**
     * 获取同比环比数据
     * @param direction 方向
     * @return  SummaryDateDTO
     */
    SummaryDateDTO getSumByDirection(@Param("direction") List<String> direction);
}
